package cn.csc.module.product.convert.spudetail;

import java.util.*;

import cn.csc.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.csc.module.product.controller.admin.spudetail.vo.*;
import cn.csc.module.product.dal.dataobject.spudetail.SpuDetailDO;

/**
 * 商品详情信息 Convert
 *
 * @author liuchuang
 */
@Mapper
public interface SpuDetailConvert {

    SpuDetailConvert INSTANCE = Mappers.getMapper(SpuDetailConvert.class);

    SpuDetailDO convert(SpuDetailCreateReqVO bean);

    SpuDetailDO convert(SpuDetailUpdateReqVO bean);

    SpuDetailRespVO convert(SpuDetailDO bean);

    List<SpuDetailRespVO> convertList(List<SpuDetailDO> list);

    PageResult<SpuDetailRespVO> convertPage(PageResult<SpuDetailDO> page);

    List<SpuDetailExcelVO> convertList02(List<SpuDetailDO> list);

}
